import request from '@/utils/request'

// 查询wuziruku列表
export function listWuziruku(query) {
  return request({
    url: '/jiuzai/wuziruku/list',
    method: 'get',
    params: query
  })
}

// 查询wuziruku详细
export function getWuziruku(rukuId) {
  return request({
    url: '/jiuzai/wuziruku/' + rukuId,
    method: 'get'
  })
}

// 新增wuziruku
export function addWuziruku(data) {
  return request({
    url: '/jiuzai/wuziruku',
    method: 'post',
    data: data
  })
}

// 修改wuziruku
export function updateWuziruku(data) {
  return request({
    url: '/jiuzai/wuziruku',
    method: 'put',
    data: data
  })
}

// 删除wuziruku
export function delWuziruku(rukuId) {
  return request({
    url: '/jiuzai/wuziruku/' + rukuId,
    method: 'delete'
  })
}
